//负责人：副组长
<<<<<<< HEAD
=======

>>>>>>> 1985484ee1452c7d22a8520a807bdae2011c4a07
/*管理员主界面
    学生管理系统 - 当前用户:AdminName
 * 功能按钮：学生管理，成绩统计
 */


package com.java.view;
import com.java.datamanage.StudentManageSystem;
import com.java.model.Admin;
<<<<<<< HEAD
import com.java.model.Student;

import javax.swing.*;
import javax.swing.table.DefaultTableModel;
import java.awt.*;

// 主框架
public class MainFrame extends JFrame {
    private StudentManageSystem system;
    private Admin loggedInAdmin;
    private JTabbedPane tabbedPane;
    // 各功能面板
    private JPanel panel;
    private JPanel statsPanel;
    //构造函数，初始化主框架
    public MainFrame(StudentManageSystem system, Admin loggedInAdmin) {
        super("学生管理系统 - 教师：" + loggedInAdmin.getUsername());
        this.system = system;
        this.loggedInAdmin = loggedInAdmin;
        initUI();
        setVisible(true);
    }

    private void initUI() {
        setDefaultCloseOperation(EXIT_ON_CLOSE);
        setSize(800, 600);
        setLocationRelativeTo(null);

        JTabbedPane tab = new JTabbedPane();
        tab.addTab("学生管理",new StudentPanel(system));
        tab.addTab("成绩统计",new StatsPanel(system));
        add(tab);
    }
}
=======

import javax.swing.*;

        // 主框架
    public class MainFrame extends JFrame {
    private StudentManageSystem system;
    private Admin loggedInAdmin;
    private JTabbedPane tabbedPane;
        // 各功能面板
        private JPanel panel;
        private JPanel statsPanel;
        //构造函数，初始化主框架
        public MainFrame(StudentManageSystem system, Admin loggedInAdmin) {


        }
        //初始化面板
        private void initUI() {

        }

        // 向面板添加功能面板



        // 刷新数据，可用于更新界面显示的数据


}




>>>>>>> 1985484ee1452c7d22a8520a807bdae2011c4a07
